package com.ihr360.payroll.dao;

import com.ihr360.payroll.model.dto.salary.task.period.SalaryCalcMiddleData;
import com.ihr360.payroll.model.dto.salary.task.period.embeddable.StaffSalaryTermId;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.query.Param;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;

import java.util.List;

@RepositoryRestResource
public interface SalaryCalcMiddleDataRepository extends CrudRepository<SalaryCalcMiddleData, StaffSalaryTermId> {
    List<SalaryCalcMiddleData> findByIdTermId(@Param(value = "termId") Long termId);
}